package com.example.mghotel.ui.home;

import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.example.mghotel.R;

import java.util.Date;

public class HomeFragment extends Fragment {

    private Activity mActivityContext;
    private LinearLayout llDateSelect;
    private TextView tvHomeDateStart;
    private TextView tvHomeTotalNight;
    private TextView tvHomeDateWeekEnd;
    private Button btnHomeSearch;

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

        View view=inflater.inflate(R.layout.fragment_home,container,false);

        //获取控件
        llDateSelect = view.findViewById(R.id.ll_home_date_select);
        tvHomeDateStart = view.findViewById(R.id.tv_home_date_start);
        tvHomeTotalNight = view.findViewById(R.id.tv_home_total_night);
        tvHomeDateWeekEnd = view.findViewById(R.id.tv_home_date_end);
        btnHomeSearch = view.findViewById(R.id.btn_home_search);


        return view;
    }


}
